#ifndef ITEMDETAILSFORM_H
#define ITEMDETAILSFORM_H



#include <Item.h>



#include <QDialog>
#include <QPointer>
#include <QAbstractButton>
#include <QAbstractItemModel>



namespace Ui {
    class ItemDetailsForm;
}



class ItemDetailsForm : public QDialog
{
    Q_OBJECT

public:

    ItemDetailsForm(QWidget *parent = 0);
    ~ItemDetailsForm();

    void setItem(Item* item, QAbstractItemModel* model);


private:

    Ui::ItemDetailsForm *ui;
    QPointer<Item> m_item;


private slots:
    void on_buttonBox_clicked(QAbstractButton* button);


};



#endif // ITEMDETAILSFORM_H


